<!DOCTYPE html>
<html lang="en" xmlns:th="http//www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--获取session中的值-->
<div>登录成功,欢迎您，<label th:text="${session.loginAccount.getUsername()}">XXX</label>用户</div>
<table align="center">
    <tr>
        <th>ID</th>
        <th>用户名</th>
        <th>密码</th>
        <th>年龄</th>
        <th>性别</th>
        <th>邮箱</th>
    </tr>
    <tr th:each="account:${accountList}">
        <td th:text="${account.id}">ID</td>
        <td th:text="${account.username}">用户名</td>
        <td th:text="${account.password}">密码</td>
        <td th:text="${account.age}">年龄</td>
        <td th:text="${account.gender}">性别</td>
        <td th:text="${account.email}">邮箱</td>
    </tr>
</table>
</body>
</html>